
import Vue from 'vue'
import VueRouter from 'vue-router'
import router from './router'
import App from './App'
import components from './components'
// import filters from './filters'
import directives from './directives'
// import VueAwesomeSwiper from 'vue-awesome-swiper'
import store from './store'

// 全局 Mixins
// import { globalMixins } from './mixins'

// 注册全局过滤器
// ------------------------------
// Object.keys(filters).forEach(key => {
//   Vue.filter(key, filters[key])
// })

// 注册自定义指令
// ------------------------------
Object.keys(directives).forEach(key => {
  Vue.directive(key, directives[key])
})
// 注册全局 Mixins
// Vue.mixin(globalMixins)

Vue.use(VueRouter)

// 注册全局组件
// ------------------------------
Vue.use(components)
// 注册轮播插件
// Vue.use(VueAwesomeSwiper)
/* eslint-disable no-new */
new Vue({
  el: '#app',
  template: '<App/>',
  components: { App },
  router,
  store
})
